<?php

namespace app\base\validate;

use think\Validate;

class User extends Validate {
  protected $rule = [
    'username|一卡通'  => 'require|unique:base_user',
    'realname|真实姓名' => 'require',
  ];


  protected $scene = [
    'add'  => ['username',
               'realname'],
    'edit' => ['realname'],
  ];
}